# Contributor: Aiden Grossman <agrossman154@yahoo.com>
# Maintainer:
pkgname=py3-pytest-jupyter
pkgver=0.10.1
pkgrel=1
pkgdesc="A pytest plugin for testing Jupyter core libraries and extensions."
url="https://github.com/jupyter-server/pytest-jupyter"
arch="noarch"
license="BSD-3-Clause"
depends="py3-pytest py3-jupyter_core"
makedepends="py3-gpep517 py3-installer py3-hatchling"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/jupyter-server/pytest-jupyter/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/pytest-jupyter-$pkgver"
options="!check" # check seems to need a venv but also fails in a venv

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer --destdir="$pkgdir" .dist/*.whl
}

sha512sums="
4d781139914a190e4d6d3488214e36f83f4485874a988c68341d42078fa13c348f7790d83a0c62c5257779752e42b686523cb786d8ce5166562a18192d385c55  py3-pytest-jupyter-0.10.1.tar.gz
"
